package com.codetile.batch.db;

import org.springframework.batch.item.ItemProcessor;
import org.springframework.stereotype.Component;

import java.util.Locale;

@Component("myProcessor")
public class MyProcessor implements ItemProcessor<User,User> {
    @Override
    public User process(User user) throws Exception {
        User u=new User();
        u.setId(user.getId());
        u.setName(user.getName().toUpperCase());
        u.setAge(user.getAge());
        return u;
    }
}
